home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / auser210.arc / AUTOUSER.DOC < prev    next >
Text File  |  1991-02-27  |  25KB  |  488 lines

  1.    ██████                              ██     ██   ██████   ███████  ███████
  2.   ██▒▒▒▒██             ██              ██▒    ██▒ ██▒▒▒▒▒▒  ██▒▒▒▒▒▒ ██▒▒▒▒██
  3.   ██▒   ██▒            ██▒             ██▒    ██▒ ██▒       ██▒      ██▒   ██▒
  4.   ████████▒ ██   ██  ██████    █████   ██▒    ██▒  ██████   ██████   ███████▒
  5.   ██▒▒▒▒██▒ ██▒  ██▒  ▒██▒▒▒  ██▒▒▒██  ██▒    ██▒   ▒▒▒▒██  ██▒▒▒▒▒  ██▒ ██▒
  6.   ██▒   ██▒ ██▒  ██▒   ██▒    ██▒  ██▒ ██▒    ██▒       ██▒ ██▒      ██▒  ██▒
  7.   ██▒   ██▒  █████▒▒   ██▒     █████▒   ███████▒   ██████▒▒ ███████  ██▒   ██▒
  8.    ▒▒    ▒▒   ▒▒▒▒▒     ▒▒      ▒▒▒▒▒    ▒▒▒▒▒▒▒    ▒▒▒▒▒▒   ▒▒▒▒▒▒▒  ▒▒    ▒▒
  9.  
  10.                            ───────────────────────
  11.                                 Version 2.10
  12.                            ───────────────────────
  13.  
  14.             For Remote Access & QuickBBS USERS.BBS format user files
  15.  
  16.  
  17.  
  18.  
  19.              (C) Copyright 1991, Brian Pirie - All Rights Reserved
  20.  
  21.          This  software may be distributed and used free of charge, so
  22.          long as no changes are made to the distribution package,  and
  23.          that  no profits are made from the distribution or use of the
  24.          software. The author of this software will not be responsible
  25.          for any damages, coincidental or otherwise, that result  from
  26.          the use of the programs enclosed.
  27.  
  28.  
  29.          The  newest  version  of  AutoUser  is  file-requestable from
  30.          1:229/316 under the magic  word  AUTOUSER,  for  you  FidoNet
  31.          folks.
  32.  
  33.  
  34.  
  35.  
  36.          INTRODUCTION
  37.          ────────────
  38.          AutoUser is a powerful program that will automatically update
  39.          your QBBS/RA compatible USERS.BBS files, according to various
  40.          criteria.  You  can have it automatically change the flags or
  41.          security levels  of  all  users  according  to  their  flags,
  42.          security  levels,  or upload:download and/or msg:call ratios.
  43.          AutoUser provides the following distinct functions  for  user
  44.          base managment:
  45.  
  46.          1.) "AUTO-UPDATING" - This is the feature  of  AutoUser  that
  47.              allows you to automatically adjust the security levels of
  48.              all users according to their Upload:Download and Messages
  49.              Written:Calls  ratios.  This can be  used  to  provide  a
  50.              system  whereby  users  who contribute more to the system
  51.              are rewarded by having more access to the board. You tell
  52.              AutoUser  which people  you wish it to qualify for  Auto-
  53.              Updating,  and  which  security  levels  to  assign  them
  54.              according  to  the  ratio's you decide upon. You can then
  55.              customize your BBS to provide more time /  more  features
  56.              to  those users with the higher security levels. A second
  57.              utility, USERSTAT, will provide you with a list of users,
  58.              along with their security levels and ratios, to allow you
  59.              to easily decide which ratios should  have  which  access
  60.              level, and to make it easy to spot "deliquant" users.
  61.  
  62.          2.) "MASS-EDITING"   -  This  second,   distinct  feature  of
  63.              AutoUser can be used to do a mass-update of user security
  64.              levels or flags. You can have AutoUser make these changes
  65.              to  all  users,  or  only  to users with certain flags or
  66.              secuirty levels. There are a great  many  uses  for  this
  67.              feature, most of which you will probably not realize off-
  68.              hand.  For  example,  say you wanted to provide a feature
  69.              that you only wanted users to be able to access  once-per
  70.              week, such as a trivia game. You could simply have a flag
  71.              that  indicates  whether  the  user has used that feature
  72.              yet, and only allow access if the flag is not  set.  When
  73.              they  access  this  feature,  the  flag  is turned on, to
  74.              prevent repeated access. Then, once per week,  you  could
  75.              use  AutoUser to switch all the flags off again. Also, if
  76.              you decide to  change  your  system  structure,  AutoUser
  77.              could  be  invaluable in adjusting users' security levels
  78.              and flags. The possibilities are endless!
  79.  
  80.          3.) "USER LOTTERY" - This third feature of AutoUser  provides
  81.              a user lottery system  whereby each day one or more users
  82.              are drawn  from the  user base  to recieve an extra  high
  83.              access level for just that day.
  84.  
  85.          4.) "TOP USERS BULLETINS"  -  This fourth feature of AutoUser
  86.              can be  used to  generate  ANSI and ASCII bulletin files,
  87.              which list the users who participate the most in the BBS.
  88.              These include  top callers,  message writters,  uploaders
  89.              and downloaders.  If you also  choose to  use the lottery
  90.              feature, these bulletins will include the lottery winners
  91.              each day.
  92.  
  93.  
  94.          THE CONFIGURATION FILE
  95.          ──────────────────────
  96.          The first thing you must do before being able to use AutoUser
  97.          is to create an AUTOUSER.CFG file. Some sample  configuration
  98.          files  are included in the distribution package. All lines in
  99.          the configuration file with a ; are ignored, but blank  lines
  100.          are  not  permitted.  The  first,  non-comment  line  of your
  101.          AUTOUSER.CFG file must be the name  (full-path  optional)  of
  102.          your USERS.BBS format user file. Here is a sample .CFG file:
  103.  
  104.             ; AUTOUSER.CFG - Configuration file for AutoUser.
  105.             ;
  106.             ; USERS.BBS path:
  107.             users.bbs
  108.             ;
  109.             ; Produce log when Auto-Updating?
  110.             AUTOLOG OFF
  111.             ;
  112.             ; Lottery settings
  113.             LOTTERY 5 100
  114.             ;
  115.             ; Top User bulletins settings
  116.             TOP TOPUSERS.ANS TOPUSER.ASC
  117.             ;
  118.             ;
  119.             ; Default Security level: (for users with no UL:DL ratio)
  120.             10
  121.             ;
  122.             ; Security Levels to Auto-Update: (in order)
  123.             10 20 30 40 50
  124.             ;
  125.             ; Best UL:DL ratio (as decimal) to still be placed
  126.             ; at each of the above security levels: (again in order)
  127.             ; 1:3 1:2 1:1 2:1 3:1
  128.             0.333 0.5 1 2 3
  129.             ;
  130.             ; Type of Ratio to use (either RATIO K or RATIO TIMES)
  131.             RATIO TIMES
  132.             ;
  133.             ; Minimum Msg written:Call ratio's required to change
  134.             ; security level's by given amount: (must be in decending
  135.             ; order)
  136.             5 2000
  137.             3 1000
  138.  
  139.          o If  you wish to use the "Auto-Updating" feature, the lines
  140.            following the USERS.BBS filename, are: Security  levels  to
  141.            qualify for Auto-Updating, the UL:DL ratios  (calculated as
  142.            a  decimal  of  UL's  ÷ DL's) to be placed at each security
  143.            level, and the MSG:CALL ratios  to  adjust  these  security
  144.            levels. These settings are described in much more detail in
  145.            the AUTO-UPDATING section.
  146.  
  147.          o If  you  wish  to disable the "Auto-Updating" feature,  the
  148.            first non-commented line following the  USERS.BBS  filename
  149.            should have the word (in upper-case) NOAUTO, as shown here:
  150.  
  151.             ; AUTOUSER.CFG - Configuration file for AutoUser.
  152.             ;
  153.             ; USERS.BBS path:
  154.             users.bbs
  155.             ;
  156.             ; Disable the Auto-Updating feature:
  157.             NOAUTO
  158.             ;
  159.             ; end-of-file.
  160.  
  161.          It   is  strongly  suggested  that  you   edit   the   sample
  162.          AUTOUSER.CFG  files  instead of starting from scratch - it is
  163.          much easier this way.
  164.  
  165.  
  166.  
  167.          AUTO-UPDATING
  168.          ─────────────
  169.          For the sake of argument, let's say you  wanted  to  setup  a
  170.          system  whereby  the  users  of  you  BBS are given more time
  171.          on-line, and greater download limits per day  the  more  they
  172.          contribute to the board, as follows:
  173.  
  174.          Upload:Download Ratio  │  Time Per Day  │  Download limit
  175.          ───────────────────────┼────────────────┼────────────────
  176.                   1:3           │     50 min     │      300K
  177.                   1:2           │     58 min     │      350K
  178.                   1:1           │     66 min     │      400K
  179.                   2:1           │     74 min     │      450K
  180.                   3:1           │     82 min     │      500K
  181.  
  182.          (you can choose any numbers you wish here....)
  183.  
  184.          Also,  you  want to "bump up" the security level of any users
  185.          who write more than 3 messages per call once, and bump it  up
  186.          twice  for those who write more than 5 messages per call. All
  187.          you have to do is setup the AUTOUSER.CFG file,  run  AUTOUSER
  188.          either  once  per day as an event, or everytime a  user  logs
  189.          off,  and setup your LIMITS.CTL file as shown in your QBBS or
  190.          RA manual! I'll leave the second two of these up to you,  and
  191.          concentrate on how to setup the AUTOUSER.CFG file...
  192.  
  193.          The second non-commented line in your  AUTOUSER.CFG file will
  194.          allow you to  turn on and off  the log feature.  Depending on
  195.          wether you wish to use this function,  this line must contain
  196.          either AUTOLOG ON or AUTOLOG OFF. You may find it usefull for
  197.          figuring  out  which ratios  to use,  to turn on  the AutoLog
  198.          function.  This feature will simply  produce an AUTOUSER.LOG,
  199.          listing  users'  names,  security levels,  and why  the Auto-
  200.          update feature made any changes it did.
  201.  
  202.          The third non-commented line in your AUTOUSER.CFG file should
  203.          list the security level to be given to users who have  either
  204.          not uploaded, not downloaded, or both.  In this case you will
  205.          probably want to set this value to 10.
  206.  
  207.          The  fourth  non-commented  line  in your AUTOUSER.CFG should
  208.          list the security levels you wish to use for these users,  in
  209.          order,  seperated  by a single space. Let's say you wanted to
  210.          make the first entry on the above chart have a security level
  211.          of 10, the second 20, and so on up to  50,  this  line  would
  212.          simply list:
  213.  
  214.          10 20 30 40 50
  215.  
  216.          AutoUser will then only Auto-Update (this will NOT effect any
  217.          Mass-user-edits  you  wish  to  do)  users  with any of these
  218.          security  levels. It will never Auto-Update users to security
  219.          levels higher than the last number, nor to any lower than the
  220.          lowest number (again, keep in mind that this does not  effect
  221.          the  Mass-user-edit  feature).  This  way,  you can also have
  222.          users (perhaps those who have donated  money),  who  are  not
  223.          required  to  upload  at  all  in  order to keep their access
  224.          level, by giving them, say level 100  access.  Also,  if  you
  225.          give  new users a secuirty level of 5, then this program will
  226.          not automatically upgrade them to a higher level before  they
  227.          have been verified!
  228.  
  229.          The fifth non-commented line in your AUTOUSER.CFG should then
  230.          list the upload download ratios for each user. Calculate this
  231.          value  by  dividing the number of uploads in the ratio to the
  232.          number of downloads. Therefore, 1  upload  per  10  downloads
  233.          would  become  0.1.  For  the  ratios listed in the chart, we
  234.          would then make this line read:
  235.  
  236.          0.333 0.5 1 2 3
  237.  
  238.          These  numbers  are the highest ratio to place at each of the
  239.          corresponding security levels.  If the user's ratio is better
  240.          than the one listed for a given security level, then they are
  241.          bumped up to the next one.  Therefore, if a user had a  ratio
  242.          of 1 upload per 5 downloads, they would have a security level
  243.          of 10, as they would if their ratio was exactly 1:3. However,
  244.          if  they had a ratio of 1 upload per 2.5 downloads, then they
  245.          would then be given a security level of 20. Again,  you  will
  246.          probably want to adjust these numbers for your own particular
  247.          situation.  Just keep in mind that the numbers should each be
  248.          seperated by one space, and  that  you  must  list  the  same
  249.          number  of  ratios  as security levels.
  250.  
  251.          If you do not wish to have a users' upload:download ratio  to
  252.          effect   their   security  levels,  but  only  their  Message
  253.          Written:Calls  ratio,  then  simply  set  all  ratios  to   a
  254.          ridiclously  high  or  low  value  (which no user will have),
  255.          depending on whether you want the default security  level  to
  256.          be the first or last one on the list.
  257.  
  258.          The next non-commented line in AUTOUSER.CFG will allow you to
  259.          choose  what type of ratio to use for the  Upload:Download's.
  260.          This may be either RATIO K for the total K uploaded and down-
  261.          loaded,  or  RATIO TIMES,  for the total number of  transfers
  262.          performed.
  263.  
  264.          In  addition  to  the  Upload:Download ratios adjusting users
  265.          security levels, you may wish to give users who have  written
  266.          an  extra  large  number  of messages a higher security level
  267.          than their Upload:Download ratio would  normally  give  them.
  268.          Or,  alternatively,  you  may wish to decrease their security
  269.          level if they have written too few messages relative to their
  270.          number of calls. These ratios are  listed  on  the  remaining
  271.          non-commented  lines of the AUTOUSER.CFG file, with each line
  272.          listing first  the  MSG:CALL  ratio  (as  a  decimal  again),
  273.          followed  by  the amount to change the security level. If you
  274.          do not wish the MSG:CALL  ratios  to  effect  users'  access,
  275.          simply  do  not  list  any  more  lines  in  the  file. It is
  276.          important that you list  these  ratios  in  decending  order,
  277.          with  the  best ratio first, and worst ratio last. Therefore,
  278.          for the hypothetical system we mentioned above, the remaining
  279.          lines of the file would look as follows:
  280.  
  281.          5 20
  282.          3 10
  283.  
  284.          People with a 5:1 or better MSG:CALL ratio would  have  their
  285.          security  levels  increased  20  (to a maximum of 50, in this
  286.          case), and people with a 3:1 or better MSG:CALL  ratio  would
  287.          have  their  security  levels  increased  10.  If you wish to
  288.          decrease their security levels for extra poor ratios (say 0.4
  289.          or worse), simply add to the list as follows:
  290.  
  291.          .4 0
  292.          .000001 -10
  293.  
  294.          Notice the different structure here... In this  case,  anyone
  295.          with  .4  or  BETTER  would  not  have  their security levels
  296.          changed (hence the 0), and people  between  .0000001  (no-one
  297.          will  ever  be worse than this) and .4 would have their level
  298.          decreased by 10.
  299.  
  300.          As well as using the Auto-Updating feature for awarding users
  301.          who contribute a lot to the system with more time  /  access,
  302.          you  may  wish  to use it to provide an upload:download ratio
  303.          enforcer for QuickBBS. Since all versions of QuickBBS to date
  304.          do not offer any way  to  enforce  an  upload:download  ratio
  305.          (without  using  an  external program), you can have AutoUser
  306.          decrease users with UL:DL ratios less than  say,  1:10  to  a
  307.          security level where you do not allow downloads, forcing them
  308.          to upload before they can download some more.
  309.  
  310.  
  311.  
  312.          MASS-USER-EDITING
  313.          ─────────────────
  314.          This  second  feature  of  AutoUser  is  not affected by your
  315.          settings  in AUTOUSER.CFG, except that it still  requires the
  316.          USERS.BBS path to be supplied. If you have also  enabled  the
  317.          Auto-Updating feature, AutoUser will perform this function at
  318.          the  same  time  as it does the Mass-User-Edit. If you do not
  319.          wish to use the Auto-Updating feature, as  mentioned  before,
  320.          you  can  disable  it  by  placing  the NOAUTO keyword on the
  321.          second, non-commented line of the AUTOUSER.CFG file.
  322.  
  323.          Mass-User-Editing is a feature that  allows  you  change  the
  324.          flags  or  security  levels  of  you users according to their
  325.          current settings. The Mass-User-Editing feature is activiated
  326.          by entering the user-edit command on the command line. Please
  327.          note that the command line MUST BE IN CAPS!  The  format  for
  328.          the AutoUser command line is as follows:
  329.  
  330.             ┌────────────────────────────────────────────────────┐
  331.             │ AUTOUSER IF <L|=|G|flag=><value> <SL|flag=><value> │
  332.             └────────────────────────────────────────────────────┘
  333.  
  334.          If  no  parameters  are  specified, then only the Auto-Update
  335.          feature will be activated.
  336.  
  337.          To use the Mass-User-Edit feature, the format is the  keyword
  338.          IF, followed by the test value, followed by what to do if the
  339.          users  meets  the test value. For example,
  340.  
  341.          AUTOUSER IF A4=0 A4=1
  342.  
  343.          would turn on the A4 flag for any users in which it is turned
  344.          off   (essentially just turning it on for everyone). The test
  345.          value can be any of the following:
  346.  
  347.          o A1= through D8= - test a  given  flag's  value.  (ie.  C4=1
  348.            would  make changes only to users who have flag C4 switched
  349.            on.
  350.  
  351.          o = - test for security levels equal to the given value. (ie.
  352.            =100 would make changes only to users who  have  a security
  353.            level of 100)
  354.  
  355.          o G -  test for security levels greater than the given value.
  356.            (ie. G5 would  make  changes  only  to  users  who  have  a
  357.            security level greater than 5)
  358.  
  359.          o L - test for security levels less than the given value.  As
  360.            above.
  361.  
  362.  
  363.          The  third  parameter,  the  result  operator,  simply  tells
  364.          AutoUser what to do with all users who meet  the  test  value
  365.          above.  It can either be a flag setting (A4=0, C8=1, etc.) or
  366.          a security level setting, in which  case  you  use  SL=  (eg.
  367.          SL=200).  Here  are  some  sample Mass-User-Edit commands for
  368.          AutoUser:
  369.  
  370.          AUTOUSER IF G5 A1=0     - Turn off flag A1 if security level
  371.                                    is greater than 5.
  372.  
  373.          AUTOUSER IF =10 SL=20   - Upgrade all users with security
  374.                                    levels of 10 to 20.
  375.  
  376.          AUTOUSER IF L31 D5=1    - Turn on flag D5 for all users with
  377.                                    a security level of 30 or lower.
  378.  
  379.          AUTOUSER IF B8=0 SL=0   - Lock out all users (set security
  380.                                    level to 0) who have flag B8 off.
  381.  
  382.          AUTOUSER IF C3=1 C3=0   - Turn off flag C3 for all users.
  383.  
  384.  
  385.          Again,  remember that the command line must be in UPPER CASE,
  386.          and be  careful  in  what  you  do  with  the  Mass-User-Edit
  387.          feature.  AutoUser  will  reliably  do  whatever you tell it,
  388.          without  asking any questions. If  you  make  a  mistake, and
  389.          say turn off flag C1 instead of B1,  you  would  accidentally
  390.          loose  information  such  as  which  users  have  donated, or
  391.          whatever. Even if you did not user AutoUser,  I  would  still
  392.          strongly  encourage  you  to  backup your USERS.BBS file on a
  393.          regular basis!
  394.  
  395.  
  396.  
  397.          THE LOTTERY FEATURE
  398.          ───────────────────
  399.          This  function,  as described  above, will  on a  daily basis,
  400.          draw  one or more  users who  will  win an  extra high  access
  401.          level.  To activate this feature,  simply  place at the end of
  402.          the LOTTERY line in the configuration file the number of users
  403.          you wish win each day,  and the  security level they should be
  404.          given for that day. If you have the Bulletin feature turned on
  405.          AutoUser will also list each day's winners in this file.  Note
  406.          that only users with security levels listed in the Auto-Update
  407.          security level line will be  adjusted by the  lottery feature.
  408.          If a user wins the Lottery, but does not qualify, his security
  409.          level will not be adjusted.  Thus, if you have AutoUser set to
  410.          draw five  users  per day,  but one of  these  users does  not
  411.          qualify,  there will actually be only  four winners that  day.
  412.          Also,  note that in this version of AutoUser you may only have
  413.          a maximum  of ten winners  per day.  When you run AutoUser the
  414.          next day,  the previous winners  will be returned back  to the
  415.          normal security level. WARNING!!! It is very important that if
  416.          you  use  the  lottery feature,  that the  security level  for
  417.          lottery winners is NOT used for anything else!
  418.  
  419.  
  420.  
  421.          TOP USERS BULLETINS
  422.          ───────────────────
  423.          This feature of AutoUser is used to generate an ANSI and ASCII
  424.          bulletin file listing the users with the most number of calls,
  425.          the  users  who have  uploaded the  most,  the users  who have
  426.          downloaded  the most,  and the users who have written the most
  427.          number of messages. Also, if you are using the lottery feature
  428.          of AutoUser, each  day's winners  will be  included  in  these
  429.          bulletins. To activate the Top Users Bulletins generator,  you
  430.          simply  include the  ANSI and ASCII filenames you wish to have
  431.          generated after the TOP keyword in the  AutoUser configuration
  432.          file. These files will have  Remote Access / QuickBBS  control
  433.          codes for pausing and clearing the screen imbedded in them.
  434.  
  435.  
  436.  
  437.          THE INCLUDED SAMPLE SETUP
  438.          ─────────────────────────
  439.          Also included in the AutoUser  distribution package  are some
  440.          sample  configuration,  control and text files for  a typical
  441.          AutoUser  setup.  You  will  most likely  want to  make  many
  442.          changes to  this configuration,  but it will get you started.
  443.          The SEC10.ASC,  SEC100.ASC and so on files would be placed in
  444.          your  textfiles directory,  and everything else  in your main
  445.          BBS directory.  The sample setup is configured to auto-update
  446.          user's according to their file upload:download ratios and msg
  447.          :call ratios, to draw 5 users per day for the lottery, and to
  448.          produce the  Top Users Bulletins.  Security level 5 is set as
  449.          new user security,  levels 10-50 are used for auto-adjusting,
  450.          level 100  is used for  Lottery  winners,  and 32000  for the
  451.          sysop.  There is no reason why you should  have to stick with
  452.          this setup, however!
  453.  
  454.  
  455.  
  456.          THE USERSTAT UTILITY
  457.          ────────────────────
  458.          Also included  with  AutoUser  is  the  UserStat  utility,  a
  459.          program  which  will list all uses, along with their security
  460.          levels, UL:DL ratios and MSG:CALL ratios in an easy  to  read
  461.          chart.   On   the   command   line,   you  must  specify  the
  462.          filename/path of your USERS.BBS file; this utility  does  not
  463.          refer to the AUTOUSER.CFG file. For example:
  464.  
  465.          USERSAT USERS.BBS
  466.  
  467.          Would   list  all  users,  along  with  the  above  mentioned
  468.          information on the screen. If  you  wish  to  re-direct  this
  469.          output to a file, you can:
  470.  
  471.          USERSTAT USERS.BBS > USERSTAT.TXT
  472.  
  473.          This utility can be useful for deciding what ratios to use in
  474.          your AUTOUSER.CFG file to be most fair to your users. It will
  475.          also  be  useful for spotting "delinquant" users who have not
  476.          uploaded very much, have not written many message, and so on.
  477.  
  478.  
  479.  
  480.          THAT'S ALL FOLKS!
  481.          ─────────────────
  482.          If you experience any problems with this software,  or if you
  483.          would like either a newer version, or to make suggestions you
  484.          wish to see in future version, you can contact me via FidoNet
  485.          netmail to 1:229/316.0. Also,  if you  wish  to fill out  the
  486.          included feedback-form, it would be more than appreciated!
  487.          Thank-you, and enjoy!
  488.